package copyengine.dataLayer.query.database
{

	public class CEDatabaseSimpleQueryImpl extends CEDatabaseQueryBasic
	{
		public function CEDatabaseSimpleQueryImpl(_name:String, _param:Object, _localDatabase:ICEDatabase)
		{
			super(_name, _param, _localDatabase);
		}

		override public function onRegister():void
		{
			if (isCanGetDataFromLocalDatabase())
			{
				finishDatabaseQuery()
			}
			else
			{
				executeSimpleQuery();
			}
		}

		protected function isCanGetDataFromLocalDatabase():Boolean
		{
			throw new Error("child class should override this function");
		}

		protected function executeSimpleQuery():void
		{
		}

	}
}
